package com.core.zyyz.amc.modules.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.core.zyyz.amc.modules.mapper.AmcPrjRegisterBMapper;
import com.core.zyyz.amc.modules.domain.AmcPrjRegisterB;
import com.core.zyyz.amc.modules.service.AmcPrjRegisterBService;

/**
 * 融资项目库登记Service业务层处理
 *
 * @author lfs
 * @date 2024-12-13
 */
@Service
public class AmcPrjRegisterBServiceImpl implements AmcPrjRegisterBService
{
    @Autowired
    private AmcPrjRegisterBMapper amcPrjRegisterBMapper;

    /**
     * 查询项目库登记
     *
     * @param registerId 项目库登记主键
     * @return 项目库登记
     */
    @Override
    public AmcPrjRegisterB selectAmcPrjRegisterBByRegisterId(String registerId)
    {
        return amcPrjRegisterBMapper.selectAmcPrjRegisterBByRegisterId(registerId);
    }

    /**
     * 查询项目库登记列表
     *
     * @param amcPrjRegisterB 项目库登记
     * @return 项目库登记
     */
    @Override
    public List<AmcPrjRegisterB> selectAmcPrjRegisterBList(AmcPrjRegisterB amcPrjRegisterB)
    {
        return amcPrjRegisterBMapper.selectAmcPrjRegisterBList(amcPrjRegisterB);
    }

    /**
     * 新增项目库登记
     *
     * @param amcPrjRegisterB 项目库登记
     * @return 结果
     */
    @Override
    public int insertAmcPrjRegisterB(AmcPrjRegisterB amcPrjRegisterB)
    {
        return amcPrjRegisterBMapper.insertAmcPrjRegisterB(amcPrjRegisterB);
    }

    /**
     * 修改项目库登记
     *
     * @param amcPrjRegisterB 项目库登记
     * @return 结果
     */
    @Override
    public int updateAmcPrjRegisterB(AmcPrjRegisterB amcPrjRegisterB)
    {
        return amcPrjRegisterBMapper.updateAmcPrjRegisterB(amcPrjRegisterB);
    }

    /**
     * 批量删除项目库登记
     *
     * @param registerIds 需要删除的项目库登记主键
     * @return 结果
     */
    @Override
    public int deleteAmcPrjRegisterBByRegisterIds(String[] registerIds)
    {
        return amcPrjRegisterBMapper.deleteAmcPrjRegisterBByRegisterIds(registerIds);
    }

    /**
     * 删除项目库登记信息
     *
     * @param registerId 项目库登记主键
     * @return 结果
     */
    @Override
    public int deleteAmcPrjRegisterBByRegisterId(String registerId)
    {
        return amcPrjRegisterBMapper.deleteAmcPrjRegisterBByRegisterId(registerId);
    }
}
